<?php

use Illuminate\Database\Seeder;
use App\User;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $users = factory(User::class, 50)->make();

        $users = $users->makeVisible(['password', 'remember_token'])->toArray();

        foreach ($users as &$user) {
            unset($user['auth_name']);
        }

        User::insert($users);
    }
}
